/**
 * 
 */
package com.aihwcm.service;

import java.util.List;

import com.aihwcm.entity.Aihrights;
import com.aihwcm.entity.Aihroles;

/**
 * @author francisli
 *
 */
public interface RoleManageService {

	public void addrole(Aihroles role, String rightsStr);

	public int count();

	public List<Aihroles> listpage(int offset, int limit);

	public Aihroles editrole(Integer id);

	public void delrole(Integer id);

	public List<Aihrights> allrights();

	public List<Aihrights> allrightsbyrole(Aihroles role);
	public int count(String search);
	public List<Aihroles> listpage(int offset, int limit, String search);
	
}
